package cn.wolfcode.crm.web.controller;

import cn.wolfcode.crm.domain.Payway;
import cn.wolfcode.crm.service.IPaywayService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;


@Controller
@RequestMapping("/payway")
public class PaywayController {

    @Autowired
    private IPaywayService paywayService;


    @RequestMapping("/listAll")
    @ResponseBody
    public List<Payway> listAll(){
        return paywayService.listAll();
    }


}
